import Vue from 'vue';
import Vuex from 'vuex';
import counter from './counter';
import loginUser from './loginUser';

Vue.use(Vuex);

const store = new Vuex.Store({
    modules: {
        counter,
        loginUser,
    },
    strict: true, // 开启严格模式，必须通过 mutations 改变状态
});

window.store = store;
export default store;